<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home Page</title>
<%@ include file="/common.jsp" %>
</head>
<body>
	<div>
		<div style="margin-top: 50px;width: 100%;">
			<div style="text-align: center;"><font style="font-size: 28px;">In Process List</font></div>
			<hr>
			<div style="text-align: center;margin-top: 30px;width: 100%;">
				<button onclick="window.location.href='${ctx}/sec/merchantList'" class="btn1">Merchant List</button>
			</div>
			<div style="margin-top: 30px;text-align: center;">
				<table align="center">
					<thead>
						<tr>
							<th width="60px;">Index</th>
							<th width="150px;">Name</th>
							<th width="220px;">Address</th>
							<th width="100px;">Status</th>
							<th width="100px;">Operation</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${merchants}" var="mercaht" varStatus="status">
							<tr>
								<td>${status.index+1 }</td>
								<td>${mercaht.name }</td>
								<td>${mercaht.address }</td>
								<td>${mercaht.status }</td>
								<td><button onclick="window.location.href='${ctx}/sec/toProcess?mid=${mercaht.id }'" class="detail">Approval</button></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>